#ifndef _IN_SDK_DEV_INFO_H_
#define _IN_SDK_DEV_INFO_H_

#ifdef __cplusplus
extern "C" {
#endif

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <pthread.h>
#include <time.h>
#include <net/if.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/ioctl.h>
#include "InCommon.h"

#define DEF_EXPORT_SENSOR_CONF              "G_SENSOR_CONF"

#define DEF_DEFAULT_UUID                    "01234567890123456789"
#define DEF_DEFAULT_KEY                     "abcdefghijklmnopqrstuvwxyz123456"
#define DEF_DEFAULT_PID                     "0123456789abcdef"
#define DEF_DEFAULT_VERSION                 "00.00.01"

#define DEF_COM_UUID_LEN                    24
#define DEF_COM_KEY_LEN                     36
#define DEF_COM_PID_LEN                     24

#define DEF_COM_VERSION_LEN                 32
#define DEF_COM_HARDWARE_MAC_LEN            24
#define DEF_COM_EXPORT_LEN                  64
#define DEF_COM_WIFI_RSSI_LEN               8

typedef enum
{
    MAC_SRC = 0,
    MAC_STR,
    MAC_HEX,
}EComHardwareMacType;

typedef enum
{
    E_WIFI_FREQUENCY_2_4_G = 0,
    E_WIFI_FREQUENCY_5_G,
}EComWifiFrequency;

Com_void Ext_InSdkSetInfo_UUID(char *uuid);
Com_void Ext_InSdkSetInfo_Authkey(char *key);
Com_void Ext_InSdkSetInfo_Pid(char *pid);

Com_s32 Ext_InSdkGetInfo_export(Com_ps8 param,Com_ps8 contest);
Com_s32 Ext_InSdkGetInfo_UUID(char *uuid);
Com_s32 Ext_InSdkGetInfo_Authkey(char *key);
Com_s32 Ext_InSdkGetInfo_Pid(char *pid);
Com_s32 Ext_InSdkGetInfo_AllVer(char *ver);
Com_s32 Ext_InSdkGetInfo_HardwareMac(Com_ps8 mac,EComHardwareMacType type);
Com_s32 Ext_InSdkGetInfo_SocVer(char *ver);
Com_void Ext_InSdkGetInfo_WiFiRssi(_OUT Com_ps8 rssi);
Com_void Ext_InSdkGetInfo_WiFiQuality(_OUT Com_ps32 rssi);
Com_void Ext_InSdkGetInfo_WiFiEssid(_OUT Com_ps8 ssid);
Com_s32 Ext_InSdkGetInfo_WiFiFrequency(Com_void);
Com_s32 Ext_InSdkGetInfo_WiFi_IP(_OUT Com_ps8 ip);

#ifdef __cplusplus
}
#endif

#endif
